<?php
	include_once("../includes/connect.php");
	function displayConfirmation()
	{
		$tmpstr = "<form action=\"".$_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']."\" method=\"post\">";
		$tmpstr .= "Are you sure you want to submit this entry?";
		foreach ($_POST as $key=>$value)
			$tmpstr .= "<input type=\"hidden\" name=\"$key\" value=\"$value\" />";
		$tmpstr .= "<input type=\"submit\" name=\"submit\" value=\"Yes\" /><input type=\"submit\" name=\"submit\" value=\"No\" />";
		$tmpstr .= "</form>";
		return $tmpstr;
	}

	function dropDownOptions($rowid,$rowname,$data,$selectedvalue)
	{
		foreach ($data as $option)
			echo "<option value=\"".$option[$rowid]."\" ".($selectedvalue == $option[$rowid] ? "selected" : "").">".$option[$rowname]."</option>";		
	}
	
?>